package com.example.forum.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName t_article
 */
@Data
public class Article implements Serializable {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    private String content;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Integer state;

    private Integer deleteState;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}